package zoo2;

public class AnimalsOfAreaCollection extends UserCollections {

    //部门
    private ZooInfo departmentNa;
    //年龄
    private int animalAgeNo;
    //物种
    private String speciesName;
    //区域
    private String areaNo;


    public ZooInfo getDepartmentNa() {
        return departmentNa;
    }

    public void setDepartmentNa(ZooInfo departmentNa) {
        this.departmentNa = departmentNa;
    }

    public int getAnimalAgeNo() {
        return animalAgeNo;
    }

    public void setAnimalAgeNo(int animalAgeNo) {
        this.animalAgeNo = animalAgeNo;
    }

    public String getSpeciesName() {
        return speciesName;
    }

    public void setSpeciesName(String speciesName) {
        this.speciesName = speciesName;
    }

    public String getAreaNo() {
        return areaNo;
    }

    public void setAreaNo(String areaNo) {
        this.areaNo = areaNo;
    }

    public String displayAllAnimals() {
        String displayMessageString = "";
        displayMessageString += this.departmentNa.getZooName() + this.getAreaNo();
        for(User currentUser:userList){
            displayMessageString +=currentUser.getUserName();
        }
        return displayMessageString;
    }

}
